
PREFIX   = .
CXXFLAGS = -O3 -DPURG_USE_PTHREADS -I../include
RANLIB  = ranlib

libcpurg.a: c_interface.cc
	$(CXX) $(CXXFLAGS) -c c_interface.cc ; ar -r libcpurg.a c_interface.o

install:  libcpurg.a
	cp libcpurg.a $(PREFIX)/lib ; $(RANLIB) $(PREFIX)/lib/libcpurg.a ; cp *.h $(PREFIX)/include/

clean:
	rm c_interface
